package com.mrtan.mapper;

import com.mrtan.bean.Account;
import com.mrtan.vo.AccountWhereVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
* @author Mr.Tan
* @description 针对表【account(账号)】的数据库操作Mapper
* @createDate 2023-12-04 11:12:04
* @Entity com.mrtan.bean.Account
*/
public interface AccountMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    List<Account> selectAll(AccountWhereVO vo);

    Account selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}
